<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<span th:fragment="commonOnLoadJs">
    <script th:src="${#httpServletRequest.getContextPath()} + '/static/admin/js/jquery.min.js'"></script>
    <script th:src="${#httpServletRequest.getContextPath()} + '/static/plugins/layui/layui.js'"></script>
    <script th:src="${#httpServletRequest.getContextPath()} + '/static/admin/js/main.js'"></script>
    <script th:src="${#httpServletRequest.getContextPath()} + '/static/admin/js/util.js'"></script>
    <script th:src="${#httpServletRequest.getContextPath()} + '/static/admin/js/common.js'"></script>
    <!-- 根路径 -->
    <script type="text/javascript" th:inline="javascript">
        var ctxPath = /*[[@{/}]]*/ ''; // 获取项目上下文
        console.info("ctxPath",ctxPath);
    </script>
</span>
</html>